<?php 



Route::name('admin.')->prefix('admin')->namespace('Backend')->middleware('auth:admin')->group(function() {
    Route::get('/', 'PagesController@index')->name('index');
    
    Route::get('/cards/muilt', 'CardsController@muilt')->name('cards.muilt');
    Route::resource('cards', 'CardsController');
    Route::resource('salesmans', 'SalesmansController');
    Route::resource('business', 'BusinessController');
    
});



Route::group(['prefix' => 'admin'], function() {
    Route::get('login', "Auth\Backend\LoginController@showLoginForm")->name('admin.login');
    Route::post('logn', "Auth\Backend\LoginController@login")->name('admin.login.post');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
